//
//  DProtocolViewController.m
//  dance
//
//  Created by aether on 2023/10/20.
//

#import "DProtocolViewController.h"

@interface DProtocolViewController ()

@property (nonatomic, strong) IBOutlet UIWebView *web;

@end

@implementation DProtocolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.title = self.name;
    
    NSString *urlString = @"https://sites.google.com/view/xbpadfaasdfsdfa/%E9%A6%96%E9%A1%B5";
    if ([self.name isEqualToString:@"隐私协议"]) {
        urlString = @"https://sites.google.com/view/bzczafasasdhasdfsadf";
    }
    NSURL *url = [NSURL URLWithString:urlString];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.web loadRequest:request];
}

@end
